<?php
/**
 * Created by PhpStorm.
 * User: apple
 * Date: 2018/11/23
 * Time: 10:25 AM
 */

namespace app\purchase\controller;

use app\purchase\model\Sn as snModel;
use think\Exception;
use think\Loader;
use think\Request;

class Sn extends \PurchaseController
{
    //获取编码接口
    public function getSn($action,$count){
        try {
            $snModel = new snModel();
            $this->successTerminate($snModel->getSn($action,$count));
        } catch (Exception $e) {
            $this->serverErrorTerminate($e->getMessage());
        }

    }

}